(1) To convert an analogue signal into a numerical representation. (2) To process a MIDI file and align all the notes to a regular beat, removing any timing errors.